import regeneratorRuntime from '../../lib/runtime/runtime';
import { request } from "../../request/index.js";
import {login} from "../../utils/asyncWx.js";
Page({
   async handleInfo(e){
       const {encryptedData,rawData,signature,iv}=e.detail;
       const {code}=await login();
       const loginParams={encryptedData,rawData,signature,iv,code};
       const res=await request({url:"/users/wxlogin",data:loginParams,method:"post"})
       console.log(res)

    }
})